-- GENERATED SPELL FOR [Solstice Hunter] --


function spell0_26389(pUnit, Event) --@Immolation Trap,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(52606,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_26389', 1, 1)
end

function spell1_26389(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26389', 614, 1)
end

function spell2_26389(pUnit, Event) --@Scorpid Sting,n/a--
pUnit:FullCastSpellOnTarget(52604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26389', 15291, 1)
end

function spell3_26389(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(31975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26389', 15000, 1)
end

function spell4_26389(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26389', 617, 1)
end

function Sorts_26389(pUnit, Event)
local choix_sorts_26389 = math.random(0, 4)
if choix_sorts_26389 == 0 then
pUnit:RegisterEvent('spell0_26389', 1, 1)
end
if choix_sorts_26389 == 1 then
pUnit:RegisterEvent('spell1_26389', 1, 1)
end
if choix_sorts_26389 == 2 then
pUnit:RegisterEvent('spell2_26389', 1, 1)
end
if choix_sorts_26389 == 3 then
pUnit:RegisterEvent('spell3_26389', 1, 1)
end
if choix_sorts_26389 == 4 then
pUnit:RegisterEvent('spell4_26389', 1, 1)
end
end

function mob26389_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26389', math.random(1500, 3000), 1)
end

function mob26389_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26389_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26389_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26389, 1, 'mob26389_Action')
RegisterUnitEvent(26389, 2, 'mob26389_Leave')
RegisterUnitEvent(26389, 3, 'mob26389_Kill')
RegisterUnitEvent(26389, 4, 'mob26389_Die')
